﻿@model TaggedPostList
@{
    var tag = Model.Tag.Title;
    var disqus = Model.Blog.Property().Disqus as string;
    var hasDisqusCode = !string.IsNullOrWhiteSpace(disqus);

    ViewBag.Title = tag;
    ViewBag.MetaDescription = "Posts under tag " + tag;
}
<div class="articles hfeed">
    <h2>Tag : @tag</h2>
    @Html.Partial("_SummaryList")
    @Html.Partial("_Pager", new PagedList<IContent>(Model.CurrentPage, Model.Total, Model.PageSize, Model.List))
    @if (hasDisqusCode && Model.List.Any(p => p.AllowComments)){
        @Html.Partial("_CommentCount", disqus)
    }
</div>